<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>list</title>
</head>
<body>

<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>钱包</td>
    </tr>
    <#if stus??>
        <#list stus as stu>
            <#if stu.name='小红'>
                <tr style="color: red">
                    <td>${stu_index + 1}</td>
                    <td>${stu.name}</td>
                    <td>${stu.age}</td>
                    <td>${stu.money}</td>
                </tr>
                <#else >
                    <tr>
                        <td>${stu_index + 1}</td>
                        <td>${stu.name}</td>
                        <td>${stu.age}</td>
                        <td>${stu.money}</td>
                    </tr>
            </#if>
        </#list>
    </#if>
</table>

姓名: ${stuMap['stu1'].name}
年龄: ${stuMap['stu1'].age}

姓名: ${stuMap.stu2.name}
年龄: ${stuMap.stu2.age}

<table>
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td>年龄</td>
        <td>钱包</td>
    </tr>
    <#list stuMap?keys as key>
        <tr>
            <td>${key_index + 1}</td>
            <td>${stuMap[key].name}</td>
            <td>${stuMap[key].age}</td>
            <td>${stuMap[key].money}</td>
        </tr>
    </#list>
</table>

当前时间为: ${today?datetime}
当前时间为: ${today?time}
当前时间为: ${today?string("yyyy-MM-dd HH:mm:ss")}

</body>
</html>